package com.bigdata.kafka.utils;

/**
 * @author xin.ding
 * @date 2020/8/19 11:05
 */
public class CliConstant {

    /**
     * 生产者消费者通用参数
     */
    public static final String BOOTSTRAP_SERVERS = "bootstrap-server";
    public static final String BOOTSTRAP_SERVERS_SHORT = "bs";
    public static final String TOPIC = "topic";
    public static final String TOPIC_SHORT = "topic";
    public static final String SASL_USERNAME = "sasl-username";
    public static final String SASL_USERNAME_SHORT = "su";
    public static final String SASL_PASSWORD = "sasl-password";
    public static final String SASL_PASSWORD_SHORT = "sp";
    public static final String KRB5_CONFIG = "krb5-conf";
    public static final String KRB5_CONFIG_SHORT = "kf";
    public static final String JAAS_CONFIG = "jaas-conf";
    public static final String JAAS_CONFIG_SHORT = "jf";
    public static final String IS_DEBUG = "debug";
    public static final String IS_DEBUG_SHORT = "d";
    public static final String IS_HELP = "help";
    public static final String IS_HELP_SHORT = "h";

    /**
     * 生产者参数
     */
    public static final String FILE = "file";
    public static final String FILE_SHORT = "f";
    public static final String DELAY = "delay";
    public static final String DELAY_SHORT = "delay";
    public static final String IS_PRINT = "print";
    public static final String IS_PRINT_SHORT = "print";
    public static final String KEY = "key";
    public static final String KEY_SHORT = "key";

    /**
     * 消费者参数
     */
    public static final String TIME = "time";
    public static final String TIME_SHORT = "time";
    public static final String GROUP_ID = "group-id";
    public static final String GROUP_ID_SHORT = "gi";
    public static final String INTERVAL = "interval";
    public static final String INTERVAL_SHORT = "i";
    public static final String DATE = "date";
    public static final String IS_PRINT_TIMESTAMP = "print-timestamp";
    public static final String IS_PRINT_TIMESTAMP_SHORT = "pt";


    public static final String EARLIEST = "earliest";
    public static final String LATEST = "latest";

    public static final long EARLIEST_NUM = -2;
    public static final long LATEST_NUM = -1;

    public static final String MINUTE = "m";


}
